CameraState

class CameraState : Serializable

Describes the viewpoint of a camera.

Constructors

CameraState
Link copied to clipboard
open fun CameraState(center: Point, padding: EdgeInsets, zoom: Double, bearing: Double, pitch: Double)

Functions

equals
Link copied to clipboard
open fun equals(object: Any): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

bearing
Link copied to clipboard
private val bearing: Double
center
Link copied to clipboard
private val center: Point
padding
Link copied to clipboard
private val padding: EdgeInsets
pitch
Link copied to clipboard
private val pitch: Double
zoom
Link copied to clipboard
private val zoom: Double

Extensions

toCameraOptions
Link copied to clipboard
fun CameraState.toCameraOptions(anchor: ScreenCoordinate? = null): CameraOptions
Extension function to convert CameraState to CameraOptions.